package com.mpyy.service.sales;

import com.mpyy.dao.sales.SellSalesReturnQueryDao;
import com.mpyy.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Descrioption SellSalesReturnQueryServiceImpl
 * @Author QIAO
 * @Date 2022-03-12 8:25
 */
@Service(value = "sellSalesReturnQueryServiceImpl")
public class SellSalesReturnQueryServiceImpl implements SellSalesReturnQueryServiceInter {
    @Autowired
    @Qualifier(value = "sellSalesReturnQueryDao")
    private SellSalesReturnQueryDao sellSalesReturnQueryDao;

    /**
     * 查询销售退货查询的上部分表格数据
     * @param saleOrderAndSaleReturn
     * @return
     */
    @Override
    public List<SaleOrderAndSaleReturn> salesReturnQueryOrder(SaleOrderAndSaleReturn saleOrderAndSaleReturn) {
        List<SaleOrderAndSaleReturn> saleOrderAndSaleReturns = sellSalesReturnQueryDao.salesReturnQueryOrder(saleOrderAndSaleReturn);
        return saleOrderAndSaleReturns;
    }

    /**
     * 查询单据的详细信息
     * @param saleOrderDescAndSaleReturn
     * @return
     */
    @Override
    public List<SaleOrderDescAndSaleReturn> salesDescData(SaleOrderDescAndSaleReturn saleOrderDescAndSaleReturn) {
        List<SaleOrderDescAndSaleReturn> saleOrderDescAndSaleReturns = sellSalesReturnQueryDao.salesDescData(saleOrderDescAndSaleReturn);
        return saleOrderDescAndSaleReturns;
    }

    /**
     * 查询客户名称
     * @return
     */
    @Override
    public List<CustomerInfo> selectCustName() {
        List<CustomerInfo> customerInfos = sellSalesReturnQueryDao.selectCustName();
        return customerInfos;
    }

    /**
     * 查询操作员
     * @return
     */
    @Override
    public List<EmployeeInfo> selectEmpName() {
        List<EmployeeInfo> employeeInfos = sellSalesReturnQueryDao.selectEmpName();
        return employeeInfos;
    }

    /**
     * 查询仓库名称
     * @return
     */
    @Override
    public List<DepotInfo> selectDepName() {
        List<DepotInfo> depotInfos = sellSalesReturnQueryDao.selectDepName();
        return depotInfos;
    }
}
